<template>
  <div class="categories">
   <template v-for="(item, index) in homestore.categories" :key="index">
    <div class="item">
        <img :src="item.pictureUrl" alt="">
        <div class="text">{{ item.title }}</div>
    </div>
   </template>
  </div>
</template>

<script setup>
  import useHomeStore from '@/stores/modules/home';

  const homestore =useHomeStore();

</script>

<style lang="less" scoped>
.categories{
//    padding: 20px 60px;
    display:flex;
    overflow-x:auto;
    height: 80px;
    padding: 0 10px;
    margin-top:10px;
    &::-webkit-scrollbar{
        display: none;
    }
    .item{
        flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    text-align: center;
        img{
            width: 32px;
            height: 32px;
            // line-height: 32px;
            // align-items:center;
        }
        .text{
            
            font-size: 12px;
            
        }
    }
}
</style>